<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 时钟的实现 -->
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        #maindiv{
            height: 400px;
            width: 400px;
            margin:0 auto;
            margin-top: 100px;
            position: relative;
        }
        img{
            width: 400px;
            height: 400px;
            
        }
        .center_div{
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            margin: auto;
        }
        #minuteHand{
            width: 10px;
            height: 130px;
            top: -35%;
            background-color: tomato;
            transform-origin: bottom;
            animation: myround 60s steps(60) infinite;
            
        }
        #timehand{
            width: 5px;
            height: 90px;
            background-color: yellowgreen;
            transform-origin: bottom;
            top: -25%;
            animation: myround 3600s steps(60) infinite;
        }
        @keyframes myround{
            from{
                transform:rotateZ(0) ;
            }

            to{
                transform: rotateZ(360deg);
            }
        }
    </style>
</head>
<body>
    <div id="maindiv">
        <img src="./img/bg.png" alt="">
        <div id="minuteHand" class="center_div"></div>
        <div id="timehand" class="center_div"></div>
    </div>
</body>
</html>